<template>
  <div class="home">
    <el-container>
      <el-header>
        <p>课程管理系统</p>
        <p>admin</p>
      </el-header>
      <el-container>
        <el-aside width="200px">
          <el-menu width="200px" router default-active="/user" class="el-menu-vertical-demo" background-color="#324157"
            text-color="#fff" active-text-color="#2682C9">
            <el-menu-item index="/user">
              <i class="el-icon-menu"></i>
              <span slot="title">管理员首页</span>
            </el-menu-item>
            <el-menu-item index="/permission">
              <i class="el-icon-setting"></i>
              <span slot="title">系管理</span>
            </el-menu-item>
            <el-menu-item index="/goods">
              <i class="el-icon-setting"></i>
              <span slot="title">专业管理</span>
            </el-menu-item>
            <el-menu-item index="/order">
              <i class="el-icon-setting"></i>
              <span slot="title">班级管理</span>
            </el-menu-item>
            <el-menu-item index="/system">
              <i class="el-icon-setting"></i>
              <span slot="title">学生管理</span>
            </el-menu-item>
            <el-menu-item index="/system">
              <i class="el-icon-setting"></i>
              <span slot="title">教师管理</span>
            </el-menu-item>
            <el-menu-item index="/system">
              <i class="el-icon-setting"></i>
              <span slot="title">课程管理</span>
            </el-menu-item>
            <el-menu-item index="/system">
              <i class="el-icon-setting"></i>
              <span slot="title">选课修改</span>
            </el-menu-item>
            <el-menu-item index="/system">
              <i class="el-icon-setting"></i>
              <span slot="title">管理员管理</span>
            </el-menu-item>
          </el-menu>
        </el-aside>
        <el-main>
          <h2 style="margin-left: 0%;">欢迎使用课程管理系统</h2>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
export default {
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>


<style>
.el-header,
.el-footer {
  background-color: #242F42;
  color: white;
  display: flex;
  justify-content: space-between;
  line-height: 60px;
}

.el-aside {
  background-color: #324157;
  border-right: 2px solid #324157;
}

.el-main {
  background-color: #E9EEF3;
  color: #333;
  text-align: left;

}

body>.el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}

.el-container {
  height: 100%;
}

.home {
  height: 100%;
}
</style>
